package com.yonyou.crm.sys.modules.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yonyou.crm.sys.user.entity.UserVO;
import com.yonyou.crm.sys.user.service.UserBizServiceImpl;

@Service
class AdministratorManage {
	
	@Autowired
	private UserBizServiceImpl userBizServiceImpl;
	
	public  Boolean isAdmin(Long userId) {
		UserVO userVO = userBizServiceImpl.getDetail(userId);
		if ( userVO.getType() < 4) {
			return true;
		} else {
			return false;
		}
	}

}
